# Contributor: Jan Tatje <jan@jnt.io>
# Maintainer: Jan Tatje <jan@jnt.io>
pkgname=epoch
pkgver=1.3.0
pkgrel=2
pkgdesc="The Epoch Init System is a small but powerful init system for Linux 2.6+."
url="https://universe2.us/epoch.html"
arch="all"
license="unlicense"
options="!check" # epoch has no tests
source="http://universe2.us/epoch_$pkgver.tar.gz epoch.conf"
builddir="$srcdir/${pkgname}_${pkgver}"

build() {
	./buildepoch.sh \
		--disable-backtraces
}

package() {
	# Use usr-merge
	mv built/sbin/* built/bin/
	rmdir built/sbin

	mkdir -p $pkgdir/usr
	cp -r built/* $pkgdir/usr/
	mkdir -p $pkgdir/etc/epoch
	cp $srcdir/epoch.conf $pkgdir/etc/epoch/epoch.conf
}

sha512sums="
1e4a8bee26d8819303cbeb67265ee74e294502acfb3f5e594222bb7bdcb2d077fe19e73c40e9111a6ef9af788d767434f5a9a357430b59d6a0cac0e36a3b8f9e  epoch_1.3.0.tar.gz
0ec063230441d2dd8cbefada9bd8121dae8cd77a309a093889028a0bedfe60eeef9a8fba4b174b5b9af512de2874a714e1e9bcdf4123e6108deda16dade2047e  epoch.conf
"
